lib = libmymat.a

$(lib):mymat.o
	ar -rc $@ $^
mymat.o:mymat.c
	gcc -c $^

.PHONY:clean
clean:
	rm -rf *.o *.a lib

.PHONY:output
output:
	mkdir -p lib/include
	mkdir -p lib/mymatlib
	cp *.h lib/include
	cp *.a lib/mymatlib
